package com.opgea.crm.repository.security;

import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;

import org.springframework.stereotype.Repository;
import org.springframework.transaction.annotation.Transactional;

import com.opgea.crm.domain.entities.security.Authority;

@Repository
public class AuthorityRepoImpl implements AuthorityRepo{

	@PersistenceContext
	EntityManager em;

	@Override
	@Transactional
	public void create(Authority authority) {
		em.persist(authority);	
	}

}
